<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-model</title>
    <script src="node_modules/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <!--双向绑定-->
    <input type="checkbox" value="武当" v-model="human">张三风<br>
    <input type="checkbox" value="峨眉" v-model="human">灭绝<br>
    <input type="checkbox" value="魔教" v-model="human">张无忌<br>
    <h2>你选择了 {{human.join(",")}}</h2>
</div>
<script type="text/javascript">
    var app=new Vue({
       el:"#app",
       data:{
           human:[]
       }
    });
</script>
</body>
</html>